package com.yulinlin.admin.modules.ad.domain;

import com.yulinlin.admin.modules.ad.domain.enums.AdRuleEnums;
import com.yulinlin.common.domain.SuperEntity;

import com.yulinlin.data.core.anno.*;
import com.yulinlin.data.core.code.type.ListString;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;


@Data
@ApiModel("广告规则")
@JoinTable("ad_rule")
public class AdRuleEntity extends SuperEntity<AdRuleEntity>  {





        @NotEmpty(message = "必填")
        @ApiModelProperty("用户id")
        @JoinWhere
        @JoinField
        private String sysUserId;

        @NotEmpty(message = "必填")
        @ApiModelProperty("标题")
        @JoinWhere
        @JoinField
        private String title;

        @NotEmpty(message = "必填")
        @ApiModelProperty("说明")
        @JoinWhere
        @JoinField
        private String content;


        @NotEmpty(message = "必填")
        @ApiModelProperty("周期类型")
        @JoinWhere
        @JoinField
        private AdRuleEnums.CycleType cycleType;

        @NotEmpty(message = "必填")
        @ApiModelProperty("周期值")
        @JoinWhere
        @JoinField
        private ListString<Integer> cycleValue;


}
